<template>
  <div class="flexcolumn aligncenter mt-12">
    <img :src="imglink" alt="" class="empty_img mb-15" :style="{height}"/>
    <!-- <img src="@/assets/images/empty1.png" alt="" class="empty_img mb-15" /> -->
    <div class="textcenter c_text3">{{text}}</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      imglink:''
    };
  },
  props: {
    text: {
      type: String,
      default: "暂无数据",
    },
    imgurl: {
      default: "empty1.png",
    },
    height:{
      type:String,
      default:'90px'
    }
  },
  created(){
    if(this.imgurl){
      this.imglink = require("@/assets/images/"+this.imgurl)
    }
  }
};
</script>

<style lang="scss" scoped>
.empty_img {
  height: 90px;
}
</style>